using System;
using System.Web;
using System.Data.Common;
using System.Collections.Specialized;
using SyCODE.Component;
using SyCODE.Component.Cryptography;
using SyCODE.Component.DataFactory;
using SyCODE.Component.Security;
using System.Web.Security;
using System.Xml;

namespace SyCODE.Blog.Admin
{
    public class CheckLogin : IHttpHandler
    {
        public virtual bool IsReusable
        {
            get
            {
                return true;
            }
        }

        public void ProcessRequest(HttpContext context)
        {
            Ticket ticket = Ticket.Get("manager");

            if (Ticket.Authenticate(ticket))
            {
                context.Response.Write(ticket.UserData);
            }
        }
    }
}
